package com.framework.entity.flow;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 功能描述: 提现流水
 *
 * @author ck
 * @date 2018/9/26 14:59
 */
@Data
@ApiModel(value = "FlowAccount")
public class FlowTask {
	/**
	 * 主键id
	 */
	@TableId
	@ApiModelProperty(hidden = true)
	private Long takeId;
	/**
	 * 订单号
	 */
	@ApiModelProperty(hidden = true)
	private	String takeNo;
	/**
	 * 提现金额
	 */
	@ApiModelProperty(hidden = true)
	private BigDecimal takeAmount;
	/**
	 * 手续费
	 */
	@ApiModelProperty(hidden = true)
	private	BigDecimal serviceAmount;
	/**
	 * 实际到账金额
	 */
	@ApiModelProperty(hidden = true)
	private BigDecimal actAccountAmount;
	/**
	 * 状态 审核中：examine 失败：fail  成功：success
	 */
	@ApiModelProperty(hidden = true)
	private	String taskState;
	/**
	 * 订单结果说明
	 */
	@ApiModelProperty(hidden = true)
	private String explains;
	/**
	 * 录入时间
	 */
	@ApiModelProperty(hidden = true)
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	/**
	 * 所属代理商
	 */
	@ApiModelProperty(hidden = true)
	private Long agentId;
	/**
	 * 提现方式
	 */
	private Integer takeType;
	/**
	 * 实时可提金额
	 */
	private BigDecimal currentAmount;
	/**
	 * 提现后金额
	 */
	private BigDecimal afterAmount;


	private Integer hasCommit;


	@TableField(exist = false)
	private String showDate;

	private String batchId;

	private Long deptId;
}
